<template>
  <div class="icomax">
    <div class="ico-1">
      <span class="sp-1">{{ text }}</span>
    </div>
    <div class="icoreth" v-if="a">
      <div class="text-1" @click="look">查看更多</div>
      <img class="text-12" src="../assets/Home/z-4.png" />
    </div>
    <div class="icoreth" v-else></div>
  </div>
</template>

<script lang="ts" setup>
import { ref, defineProps, defineEmits } from 'vue'
const props = defineProps<{
  a?: string
  text: string
}>()
const emit = defineEmits(['look'])
const look = () => {
  emit('look', props.text)
}
</script>

<style lang="scss" scoped>
.icomax {
  width: 100%;
  height: 80px;
  box-sizing: border-box;
  background-image: url('../assets/Home/s-1.png');
  /* background-color: red; */
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  .ico-1 {
    width: 100%;
    height: 80px;
    letter-spacing: 1px;
    background-image: url('../assets/Home/x-1.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-sizing: border-box;
    line-height: 80px;
    .sp-1 {
      margin-left: 90px;
      font-size: 18px;
      font-family: FZZYJW--GB1-0, FZZYJW--GB1;
      font-weight: normal;
      color: #ffffff;
      letter-spacing: 1px;
      background: linear-gradient(360deg, #ffd480 0%, #ffffff 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }
  .icoreth {
    width: 30%;
    display: flex;
    align-items: center;
    .text-1 {
      width: 64px;
      height: 16px;
      font-size: 16px;
      text-align: center;
      font-family:
        PingFangSC-Semibold,
        PingFang SC;
      font-weight: 600;
      color: #ffcc66;
      line-height: 16px;
      cursor: pointer;
    }
    .text-12 {
      width: 12px;
      height: 12px;
      /* background: #ffcc66; */
    }
  }
}
</style>
